const appkey = import.meta.env.VITE_APP_KEY;
export default [
  {
    path: appkey,
    name: appkey,
    meta: {
      bizAppCode: appkey, //此行代码不能注释 为应用拉去基础信息
      backTo: '-1' // 定义在基座中点击返回按钮的行为, 执行history.go(-1)
      // hideTespTitle: true // 当希望使用自定义的app-title时, 此项设置能够将基座的title隐藏
    },
    components: {
      default: () => import('@/views/index.vue'),
      layer: () => import('@/views/layer.vue')
    },
    children: [
      {
        path: '',
        redirect: { name: `${appkey}-index` }
      },
      {
        path: 'index',
        name: `${appkey}-index`,
        component: () => import('@/views/index/index.vue'),
        // components: {
        //   default: () => import('@/views/index/index.vue'),
        //   layer: () => import('@/views/index/layer.vue')
        // },
        meta: {
          backTo: '-1'
        }
      },
      {
        path: 'test',
        name: `${appkey}-test`,
        components: {
          default: () => import('@/views/test/index.vue')
        },
        meta: {
          backTo: '-1'
        }
      },
      {
        path: 'big',
        name: `${appkey}-big`,
        component: () => import('@/views/big-screen-page/index.vue'),
        meta: {
          backTo: '-1'
        }
      }
    ]
  }
];
